package com.ccq.farm.service.impl;

import com.ccq.farm.model.OauthUser;
import com.ccq.farm.mapper.OauthUserMapper;
import com.ccq.farm.service.OauthUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 陈超旗
 * @since 2018-06-30
 */
@Service
public class OauthUserServiceImpl extends ServiceImpl<OauthUserMapper, OauthUser> implements OauthUserService {

    @Autowired
    private OauthUserMapper oauthUserMapper;

    @Override
    public OauthUser findByUserNameAndPwd(String userName, String userPwd, String module) {

        return oauthUserMapper.findByUserNameAndPwd(userName,userPwd,module);
    }
}
